import 'package:effective/model/user_entity.dart';

userEntityFromJson(UserEntity data, Map<String, dynamic> json) {
	if (json['email'] != null) {
		data.email = json['email'].toString();
	}
	if (json['password'] != null) {
		data.password = json['password'].toString();
	}
	return data;
}

Map<String, dynamic> userEntityToJson(UserEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['email'] = entity.email;
	data['password'] = entity.password;
	return data;
}